function p = glm_SubjectPredictors(hfile)
% GLM::SubjectPredictors  - return list of subject predictor names
%
% FORMAT:       spreds = glm.SubjectPredictors;
%
% No input fields.
%
% Output fields:
%
%       spreds      subject predictor names list (Px1)

% Version:  v0.7g
% Build:    9101417
% Date:     Oct-14 2009, 5:39 PM CEST
% Author:   Jochen Weber, SCAN Unit, Columbia University, NYC, NY, USA
% URL/Info: http://wiki.brainvoyager.com/BVQXtools

% check arguments
if nargin ~= 1 || ...
    numel(hfile) ~= 1 || ...
   ~isBVQXfile(hfile, 'glm')
    error( ...
        'BVQXfile:BadArgument', ...
        'Invalid object handle in call.' ...
    );
end
bc = bvqxfile_getcont(hfile.L);
p = {bc.Predictor(:).Name2};
fs = p{1}(1:findfirst(p{1} == ':'));
p = strrep(p, [fs ' '], '');
p = p(isemptycell(regexp(p, '^Subject\s+.*:\s+')));
p = p(:);
